﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourPersistencia;
using PiscoSourDominio;

namespace PiscoSourSOAPServices.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "CartaLocal" in code, svc and config file together.
    public class CartaLocal : ICartaLocal
    {
        private CartaLocalDAO cartaLocalDAO = null;
        private CartaLocalDAO CartaLocalDAO
        {
            get
            {
                if (cartaLocalDAO == null)
                    cartaLocalDAO = new CartaLocalDAO();
                return cartaLocalDAO;
            }
        }

        public string InsertarCartaLocal(Carta_Local objCartaLocal)
        {
            return CartaLocalDAO.InsertarCartaLocal(objCartaLocal);
        }

        public string EliminarCartaLocal(Carta_Local objCartaLocal)
        {
            return CartaLocalDAO.EliminarCartaLocal(objCartaLocal);
        }

        public string ActualizarCartaLocal(Carta_Local objCartaLocal)
        {
            return CartaLocalDAO.ActualizarCartaLocal(objCartaLocal);
        }
    }
}
